<%-- 
    Document   : VerRecursoAula
    Created on : 15/07/2008, 07:44:42 AM
    Author     : Alejandro
--%>

<%@ page language="java" import="java.util.*" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page language="java" import="com.akcess.vo.*" %>
<%@ page language="java" import="manejadores.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
            String path = request.getContextPath();
            String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>
        <!--  Version: Multiflex-3.12 / Overview                    --><!--  Date:    January 20, 2008                             --><!--  Design:  www.1234.info                                --><!--  License: Fully open source without restrictions.      --><!--           Please keep footer credits with the words    --><!--           "Design by 1234.info" Thank you!             -->


        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="3600">
        <meta name="revisit-after" content="2 days">
        <meta name="robots" content="index,follow">
        <meta name="publisher" content="Your publisher infos here ...">
        <meta name="copyright" content="Your copyright infos here ...">
        <meta name="author" content="Design: 1234.info / Modified: Your Name">
        <meta name="distribution" content="global">
        <meta name="description" content="Your page description here ...">
        <meta name="keywords" content="Your keywords, keywords, keywords, here ...">
        <base href="<%=basePath%>">
        <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout4_setup.css">
        <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout4_text.css">
    <link rel="icon" type="image/x-icon" href="./img/favicon.ico"><title>SRR - Sistema de Reserva de Recursos</title><!-- Global IE fix to avoid layout crash when single word size wider than column width --><!--[if IE]><style type="text/css"> body {word-wrap: break-word;}</style><![endif]--><link href="./css/highlighter.css" type="text/css" rel="stylesheet"><link href="./css/highlighter_002.css" type="text/css" rel="stylesheet"></head><body>
        <!-- Main Page Container -->
        <div class="page-container">
            
            <!-- For alternative headers START PASTE here -->

    <!-- A. HEADER -->      
           <jsp:include page="../Header.jsp"/>
            
            <!-- For alternative headers END PASTE here -->

            <!-- B. MAIN -->
            <div class="main">
                
                <!-- B.1 MAIN NAVIGATION -->
                <jsp:include page="../barraOperaciones.jsp"/>            
                <!-- B.2 MAIN CONTENT -->
                <div class="main-content">                    
                    <!-- Pagetitle -->                    
                            <%
            out.println("<h1 class=\"pagetitle\"> Recurso Aula: " + request.getParameter("nombreRecurso") + "</h1>");
            Connection cone;
            cone = (Connection) session.getAttribute("conexion");
            int idRecurso = Integer.parseInt(request.getParameter("id"));
            ManejadorRecursosAulas manejador = new ManejadorRecursosAulas(cone);
            RecursoAulaCompleto recurso = manejador.ObtenerRecursoAula(idRecurso);
            out.println("<table border=\"0\">");
            out.println("<tbody>");
            out.println("<th class=\"top\"><b>Nombre de Aula</b> </th>");
            out.println("<td aling=\"center\">" + recurso.getNombre() + "</td>");
            out.println("</tr>");
            if (recurso.getNombreUbicacion() != null) {
                out.println("<tr>");
                out.println("<th class=\"top\"><b>Ubicacion</b> </th>");
                out.println("<td aling=\"center\">" + recurso.getNombreUbicacion() + "</td>");
                out.println("</tr>");
            } else {
                out.println("<tr>");
                out.println("<th class=\"top\"><b>Ubicacion</b> </th>");
                out.println("<td aling=\"center\">No tiene</td>");
                out.println("</tr>");
            }

            if (recurso.getDescripcionUbicacion() != null) {
                out.println("<tr>");
                out.println("<th class=\"top\"><b>Descripcion de Ubicacion</b> </th>");
                out.println("<td aling=\"center\">" + recurso.getDescripcionUbicacion() + "</td>");
                out.println("</tr>");
            } else {
                out.println("<tr>");
                out.println("<th class=\"top\"><b>Descripcion de Ubicacion</b> </th>");
                out.println("<td aling=\"center\">No tiene</td>");
                out.println("</tr>");
            }
            out.println("<th class=\"top\"><b>Capacidad</b> </th>");
            out.println("<td aling=\"center\">" + recurso.getCapacidad() + "</td>");
            out.println("</tr>");

            out.println("<tr>");
            out.println("<th class=\"top\"><b>Disponible</b> </th>");
            if (recurso.getDisponible()) {
                out.println("<td aling=\"center\">Si</td>");
            } else {
                out.println("<td aling=\"center\">No</td>");
            }
            out.println("</tr>");

            out.println("<tr>");
            out.println("<th class=\"top\"><b>Fecha de Creacion</b> </th>");
            out.println("<td aling=\"center\">" + recurso.getFechacreacion().toString() + "</td>");
            out.println("</tr>");

            out.println("<tr>");
            out.println("<th class=\"top\"><b>Observacion</b> </th>");
            out.println("<td aling=\"center\">" + recurso.getObservacion() + "</td>");
            out.println("</tr>");

            out.println("</tbody>");
            out.println("</table>");
            out.println("<a href=\"GestionarRecursos_Aulas?hacer=Listar\">Ir atras</a>");
                                %>
                    </tbody>
                    </table>           
                </div>                
                <!-- B.3 SUBCONTENT -->                
            </div>            
            <!-- C. FOOTER AREA -->   
           <%@include file="../footer.jsp"%>   
        </div>         
    </body>
</html>
